package api

import (
	"github.com/gin-gonic/gin"
	"hcy-api/lib/http"
	"sys/module/dao"
)

var RoleApi = new(roleApi)

type roleApi struct {
}

func (api roleApi) GetRole(c *gin.Context) {
	li, err := dao.RoleDB.FindAll(1)
	if err != nil {
		http.BadWithParamsError(c, err)
		return
	}
	http.Ok(c, li)
}
